package com.pk.platform.business.question.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.pk.platform.business.question.vo.PaperVO;
import com.pk.platform.domain.question.CodeTable;
import com.pk.platform.domain.question.ItemOption;
import com.pk.platform.domain.question.Paper;
import com.pk.platform.domain.question.Question;
import com.pk.platform.util.page.Pager;

public interface IPaperDefineService {

	public List<Map<String, Object>> queryPaperByPage(PaperVO pvo, Pager pager);
	
	public List<Map<String, Object>> queryCodeTableByPaper(String paperId, String ctType);
	
	public List<Map<String, Object>> queryItemOptionByCodeTable(String ctId);
	
	public String addPaper(Paper paper);
	
	public void updatePaper(Paper paper);
	
	public String delPaper(String id);
	
	public Paper queryPaperById(String id);
	
	public Map<String, Object> addCodeTable(CodeTable ct);
	
	public Map<String, Object> updateCodeTable(CodeTable ct);
	
	public Map<String, Object> delCodeTable(String id);
	
	public CodeTable queryCodeTableById(String id);
	
	public String addItemOption(String keyArray, String labelArray, String ctId);
	
	public String delItemOption(String[] id);

	public void updateItemOption(ItemOption io);
	
	public ItemOption queryItemOptionById(String id);
	
	public List<Map<String, Object>> queryQuestionByPage(PaperVO pvo, Pager pager);
	
	public Map<String, Object> addQuestion(Question question);
	
	public String updateQuestion(Question question);
	
	public Question queryQuestionById(String id);
	
	public void delQuestion(String id);
	
	public Map<String, String> exportPaperMap(String paperId, HttpServletRequest request);
	
}
